package com.shangxian.giveithome.mapper;

import com.shangxian.giveithome.entity.seekhelp.SeekHelpDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*  @author zhuzubin
*/
@Mapper
public interface SeekHelpMapper {

    int insertSeekHelp(SeekHelpDO object);

    int updateSeekHelp(SeekHelpDO object);

    int update(SeekHelpDO object);

    List<SeekHelpDO> querySeekHelp(@Param("usId") Long userId, @Param("meId") Long meId, @Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    SeekHelpDO querySeekHelpLimit1(SeekHelpDO object);

    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    void delete(@Param("id") Long id);

    void updateMeRemark(Long id, String meRemark);

    SeekHelpDO querySeekHelpById(@Param("id") Long id);

    Integer queryCountSeekHelp(@Param("usId") Long userId, @Param("meId") Long meId);

    void updateSeekHelpDImg(@Param("usId") Long id, @Param("donationImgId") Long donationImgId);
}